/*#include <stdio.h>
int main()
{
	int n;
	scanf("%d",&n);
	if(n%2==0)
	{
		printf("2 ");
	}
 	if(n%3==0)
	{
		printf("3 ");
	}
	 if(n%7==0)
	{
		printf("7 ");
	}
	else if(n%2!=0&&n%3!=0&&n%7!=0)
	{
		printf("n ");
	}
	return 0;
}
#include <stdio.h>
int main()
{
	int n,count=0,cnn=0;
	while(scanf("%d",&n)!=EOF)
	{
		if(n>0)
		{
			count++;
		}
		else if(n<0)
		{
			cnn++;
		}
	}
	printf("positive:%d\n",count);
	printf("negative:%d\n",cnn);
	return 0;
}
#include <stdio.h>
int main()
{
	double p,sum;
	int month,day,n;
	scanf("%lf %d %d %d",&p,&month,&day,&n);
	if(month==11&&day==11)
	{
		if(n==1)
		{
			sum=p*0.7-50;
		}
		else
		{
			sum=p*0.7;
		}
	}
	else if(month==12&&day==12)
	{
		if(n==1)
		{
			sum=p*0.8-50;
		}
		else
		{
			sum=p*0.8;
		}
	}
	else 
	{
		sum=p-p;
	}
	if(sum<0)
	{
		printf("0.00");
	}
	printf("%.2lf",sum);
	return 0;	
}
#include <stdio.h>
int main()
{
	double a;
	int sum;
	char b;
	scanf("%lf %c",&a,&b);
	if(a<=1)
	{
		if(b=='y')
		{
			sum=20+5;
		}
		else 
		{
			sum=20;
		}	
	}
	else if(a>1)
	{
		if(b=='y')
		{
			if((a-1)!=(int)(a-1))
			{
				sum=20+1+5+(int)(a-1);
			}
			else 
			{
				sum=20+a-1+5;
			}
		}
		else 
		{
			if((a-1)!=(int)(a-1))
			{
				sum=20+(int)(a-1)+1;
			}
			else 
			{
				sum=20+(a-1);
			}
		}
	}
	printf("%d",sum);
	return 0;
}
#include <stdio.h>
int main()
{
	double x;
	scanf("%lf",&x);
	if(x>=100&&x<500)
	{
		x=x*0.9;
	}
	else if(x>=500&&x<2000)
	{
		x=x*0.8;
	}
	else if(x>=2000&&x<5000)
	{
		x=x*0.7;
	}
	else if(x>=5000)
	{
		x=x*0.6;
	}
	printf("%.1lf",x);
	return 0;
}
#include <stdio.h>
int main()
{
	int n;
	scanf("%d",&n);
	if(n>10+n*1.0/10)
	{
		printf("v");
	}
	else
	{
		printf("w");
	}
	return 0;
}
#include <stdio.h>
int main()
{
	int x1,y1,x2,y2;
	scanf("%d %d",&x1,&y1);
	scanf("%d %d",&x2,&y2);
	if(y2>y1)
	{
		printf("u");
	}
	else if(y2<y1)
	{
		printf("d");
	}
	else if(x1<x2)
	{
		printf("r");
	}
	else 
	{
		printf("i");
	}
	return 0;
}
#include <stdio.h>
int main()
{
	int d;
	scanf("%d",&d);
	if(d==1)
	printf("Monday");
	else if(d==2)
	printf("Tuesday");
	else if(d==3)
	printf("Wednesday");
	else if(d==4)
	printf("Thursday");
	else if(d==5)
	printf("Friday");
	else if(d==6)
	printf("Saturday");
	else if(d==7)
	printf("Sunday");
	return 0;
}
#include <stdio.h>
int main()
{
	int n;
	while(scanf("%d",&n)!=EOF);
	if(n==200)
	{
		printf("OK");
	}
	else if(n==202)
	printf("Accepted");
	else if(n==400)
	printf("Bad Request");
	else if(n==403)
	printf("Forbidden");
	else if(n==404)
	printf("Not Found");
	else if(n==500)
	printf("Internal Server Error");
	else if(n==502)
	printf("Bad Gateway");
	return 0; 
}*/
#include <stdio.h>
int main()
{
	double t;
	while(scanf("%lf",&t)!=EOF)
	{
		if(t>0)
		{
			printf("1");
		}
		else if(t=0)
		{
			printf("0.5");
		}
		else
		{
			printf("0");
		}
	}
	return 0; 
}
